package sg.edu.nus.iss.ooad.jass.dao.pattern;

import sg.edu.nus.iss.ooad.jass.dao.IAdvertiserDAO;
import sg.edu.nus.iss.ooad.jass.dao.ICompanyDAO;
import sg.edu.nus.iss.ooad.jass.dao.IJobAdvertisementDAO;
import sg.edu.nus.iss.ooad.jass.dao.IJobseekerDAO;
import sg.edu.nus.iss.ooad.jass.dao.IResponseDAO;
import sg.edu.nus.iss.ooad.jass.dao.file.AdvertiserDAOPropertiesImpl;
import sg.edu.nus.iss.ooad.jass.dao.file.CompanyDAOPropertiesImpl;
import sg.edu.nus.iss.ooad.jass.dao.file.JobAdvertisementDAOPropertiesImpl;
import sg.edu.nus.iss.ooad.jass.dao.file.JobseekerDAOPropertiesImpl;
import sg.edu.nus.iss.ooad.jass.dao.file.ResponseDAOPropertiesImpl;

/**
 *
 * This factory class supplies the underlying DAO implementation class based on
 * the DAO class for Properties implementation
 *
 * @author Isak Rabin (HT082193M)
 * @version 1.0
 * @since 1.0
 *
 * Development Environment : Netbeans IDE v6.7
 * Name of the File        : JASSDAOFactoryPropertiesImpl.java
 * Creation / Modification History
 *         Isak Rabin        20-Sep-2009        Created
 *
 */
public class JASSDAOFactoryPropertiesImpl extends AbstractJASSDAOFactory {

        public JASSDAOFactoryPropertiesImpl() {
        }

        @Override
        public IAdvertiserDAO getAdvertiserDAO() {
                IAdvertiserDAO advertiserDAO = new AdvertiserDAOPropertiesImpl();
                return advertiserDAO;
        }

        @Override
        public ICompanyDAO getCompanyDAO() {
                ICompanyDAO companyDAO = new CompanyDAOPropertiesImpl();
                return companyDAO;
        }

        @Override
        public IJobseekerDAO getJobseekerDAO() {
                IJobseekerDAO jobseekerDAO = new JobseekerDAOPropertiesImpl();
                return jobseekerDAO;
        }

        @Override
        public IJobAdvertisementDAO getJobAdvertisementDAO() {
                IJobAdvertisementDAO jobadvertisementDAO = new JobAdvertisementDAOPropertiesImpl();
                return jobadvertisementDAO;
        }

        @Override
        public IResponseDAO getResponseDAO() {
                IResponseDAO responseDAO = new ResponseDAOPropertiesImpl();
                return responseDAO;
        }
}
